package test.vo;

import jdbc.InputUtil.InputField;

/**
 * 该类用于表示一篇文章的信息
 */
public class Article {
    @InputField(title = "文章标题",notNull = true)
    private String title;
    @InputField(title = "文章内容",notNull = true)
    private String content;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Article{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
